watch listを書き出すscript
code:js
const watchListIds = Object.keys(JSON.parse(localStorage.getItem('projectsLastAccessed')));
const projects = await getProjectInfo(watchListIds);
// 作成日時順に並べてみる
const rankings = projects.sort((a,b) => a.created - b.created)
.flatMap(({name, displayName, created, publicVisible}) => !publicVisible ? [] : [`/${name}\t${ displayName.slice(0,10)
}${displayName.length > 10 ? "..." : ""}\t${lightFormat(new Date(created * 1000), "yyyy-MM-dd")}`]);
alert(rankings.join("\n"));
await navigator.clipboard.writeText("table:ranking(created)\n" + rankings.map(line => ${line}).join("\n"));